package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.PersonTeachingHistory;
import com.zhijian.medical.entity.vo.request.PersonTeachingHistorySearchVo;
import com.zhijian.medical.entity.vo.response.PersonTeachingHistoryVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 人员-带教记录 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-08-12 18:09:58
 */
public interface PersonTeachingHistoryService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    PersonTeachingHistory selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    PersonTeachingHistoryVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param personTeachingHistory
     * @return
     */
    Long insert(PersonTeachingHistory personTeachingHistory);

    /**
     * 更改
     *
     * @param personTeachingHistory
     * @return
     */
    boolean update(PersonTeachingHistory personTeachingHistory);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(PersonTeachingHistory record);

    /**
     * 总数
     *
     * @param personTeachingHistorySearchVo
     * @return
     */
    Integer count(PersonTeachingHistorySearchVo personTeachingHistorySearchVo);

    /**
     * 列表
     *
     * @param personTeachingHistorySearchVo
     * @return
     */
    List<PersonTeachingHistoryVo> selectList(PersonTeachingHistorySearchVo personTeachingHistorySearchVo);

    /**
     * 分页查询
     *
     * @param personTeachingHistorySearchVo
     * @return
     */
    Page<PersonTeachingHistoryVo> selectPage(PersonTeachingHistorySearchVo personTeachingHistorySearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<PersonTeachingHistory> entities);
}